﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Security.Cryptography;

namespace DES2
{
    class Encrypt
    {
        //加密模块，使用密码进行des加密，之后输入base64格式的加密串，实现与java统一
        public String Encode(String key, String data)
        {
            /*
            DES des = new DESCryptoServiceProvider();
            
            des.Key =UTF8Encoding.UTF8.GetBytes(key);
            des.IV = UTF8Encoding.UTF8.GetBytes(key);

            byte[] bytes = UTF8Encoding.UTF8.GetBytes(data);
            byte[] resultBytes = des.CreateEncryptor().TransformFinalBlock(bytes, 0, bytes.Length);
            

            return Convert.ToBase64String(resultBytes);*/
            return data;
        }
    }
}
